projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b01b526
)
label: Don't use gtk_widget_set_simple_clip
author
Timm Bäder
<mail@baedert.org>
Tue, 25 Apr 2017 09:57:12 +0000
(11:57 +0200)
committer
Timm Bäder
<mail@baedert.org>
Tue, 25 Apr 2017 18:30:37 +0000
(20:30 +0200)
The clip returned by gtk_css_gadget_allocate already includes the
box-shadow size and we manually care about the text-shadow size.
gtk/gtklabel.c
patch
|
blob
|
history
diff --git
a/gtk/gtklabel.c
b/gtk/gtklabel.c
index dd1b202fd4abf844bd024ceb2a942aa067478c8c..150433fea0f6983f853f58b268133521f4190233 100644
(file)
--- a/
gtk/gtklabel.c
+++ b/
gtk/gtklabel.c
@@
-4005,7
+4005,7
@@
gtk_label_size_allocate (GtkWidget *widget,
gtk_label_get_ink_rect (label, &clip_rect);
gdk_rectangle_union (&clip_rect, &clip, &clip_rect);
-
_gtk_widget_set_simple
_clip (widget, &clip_rect);
+
gtk_widget_set
_clip (widget, &clip_rect);
}
static void